<template>
  <div>
    <h1>{{num === 0 ? '女':'男'}}</h1>
    <button @click="cmaw">一二三变男女</button>
  </div>
</template>

<script>
export default {
  data () {
    return {
      num: 0
    }
  },
  methods: {
    
    cmaw (){
      if(this.num === 0){
        this.num = 1
      }else{
        this.num = 0
      }
    }
  }
}
</script>

<style scoped lang='less'>

</style>

